home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / window.c < prev    next >
C/C++ Source or Header  |  1996-03-14  |  2KB  |  65 lines

  1. #if    !defined(lint) && !defined(DOS)
  2. static char rcsid[] = "$Id: window.c,v 4.6 1996/03/15 07:41:11 hubert Exp $";
  3. #endif
  4. /*
  5.  * Program:    Window management routines
  6.  *
  7.  *
  8.  * Michael Seibel
  9.  * Networks and Distributed Computing
  10.  * Computing and Communications
  11.  * University of Washington
  12.  * Administration Builiding, AG-44
  13.  * Seattle, Washington, 98195, USA
  14.  * Internet: mikes@cac.washington.edu
  15.  *
  16.  * Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  17.  *
  18.  *
  19.  * Pine and Pico are registered trademarks of the University of Washington.
  20.  * No commercial use of these trademarks may be made without prior written
  21.  * permission of the University of Washington.
  22.  * 
  23.  * Pine, Pico, and Pilot software and its included text are Copyright
  24.  * 1989-1996 by the University of Washington.
  25.  * 
  26.  * The full text of our legal notices is contained in the file called
  27.  * CPYRIGHT, included with this distribution.
  28.  *
  29.  */
  30. /*
  31.  * Window management. Some of the functions are internal, and some are
  32.  * attached to keys that the user actually types.
  33.  */
  34.  
  35. #include        <stdio.h>
  36. #include    "osdep.h"
  37. #include        "pico.h"
  38. #include        "estruct.h"
  39. #include    "edef.h"
  40.  
  41.  
  42. /*
  43.  * Refresh the screen. With no argument, it just does the refresh. With an
  44.  * argument it recenters "." in the current window. Bound to "C-L".
  45.  */
  46. refresh(f, n)
  47.   int f, n;
  48. {
  49.     /*
  50.      * since pine mode isn't using the traditional mode line, sgarbf isn't
  51.      * enough.
  52.      */
  53.     if(Pmaster)
  54.         curwp->w_flag |= WFMODE;
  55.  
  56.     if (f == FALSE)
  57.         sgarbf = TRUE;
  58.     else{
  59.         curwp->w_force = 0;             /* Center dot. */
  60.         curwp->w_flag |= WFFORCE;
  61.     }
  62.  
  63.     return (TRUE);
  64. }
  65.